/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.odhixon.volarme.gui;

import com.odhixon.volarme.VolarME;
import com.sun.lwuit.Command;
import com.sun.lwuit.Form;
import com.sun.lwuit.Label;
import com.sun.lwuit.events.ActionEvent;
import com.sun.lwuit.util.Resources;

/**
 * AcercaDeForm.
 * @author Ariel Aguirre <odhixon@gmail.com>
 */
public class AcercaDeForm extends Form {

    static public AcercaDeForm instance = null;

    static public AcercaDeForm getInstance() {
        if (instance == null) {
            instance = new AcercaDeForm();
        }
        return instance;
    }
    private Command volverCommand;

    public AcercaDeForm() {
        super();
        this.setTitle("Acerca de...");
        try {
            Resources resources = VolarME.getResource();
            Label imageLabel = new Label(resources.getImage("volarme"));
            this.addComponent(imageLabel);
        } catch(Exception e) {}
        Label reporterLabel = new Label("VolarME v1.0");
        this.addComponent(reporterLabel);
        Label desarrolladoLabel = new Label("Desarrollado por Ariel Aguirre.");
        this.addComponent(desarrolladoLabel);
        Label emailLabel = new Label("odhixon@gmail.com");
        this.addComponent(emailLabel);
        Label fechaLabel = new Label("Enero 2010 - Argentina");
        this.addComponent(fechaLabel);
        Label DedicatoriaLabel = new Label("Dedicado a mi querido hermano.");
        this.addComponent(DedicatoriaLabel);

        volverCommand = new Command("Volver") {

            public void actionPerformed(ActionEvent actionEvent) {
                OpcionesForm.getInstance().show();
            }
        };
        this.addCommand(volverCommand);
    }
}
